﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Dzzzr
{
  public partial class Game 
  {

    private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);

    private int _ID;

    private int _TeamID;

    private string _Name;

    private string _Description;

    private System.DateTime _CreationDate;

    public Game()
    {
      this.Initialize();
    }

    public int ID
    {
      get
      {
        return this._ID;
      }
      set
      {
        if ((this._ID != value))
        {
          this.SendPropertyChanging();
          this._ID = value;
          this.SendPropertyChanged("ID");
        }
      }
    }

    public int TeamID
    {
      get
      {
        return this._TeamID;
      }
      set
      {
        if ((this._TeamID != value))
        {
          this.SendPropertyChanging();
          this._TeamID = value;
          this.SendPropertyChanged("TeamID");
        }
      }
    }

    public string Name
    {
      get
      {
        return this._Name;
      }
      set
      {
        if ((this._Name != value))
        {
          this.SendPropertyChanging();
          this._Name = value;
          this.SendPropertyChanged("Name");
        }
      }
    }

    public string Description
    {
      get
      {
        return this._Description;
      }
      set
      {
        if ((this._Description != value))
        {
          this.SendPropertyChanging();
          this._Description = value;
          this.SendPropertyChanged("Description");
        }
      }
    }

    public System.DateTime CreationDate
    {
      get
      {
        return this._CreationDate;
      }
      set
      {
        if ((this._CreationDate != value))
        {
          this.SendPropertyChanging();
          this._CreationDate = value;
          this.SendPropertyChanged("CreationDate");
        }
      }
    }

    public event PropertyChangingEventHandler PropertyChanging;

    public event PropertyChangedEventHandler PropertyChanged;

    protected virtual void SendPropertyChanging()
    {
      if ((this.PropertyChanging != null))
      {
        this.PropertyChanging(this, emptyChangingEventArgs);
      }
    }

    protected virtual void SendPropertyChanged(String propertyName)
    {
      if ((this.PropertyChanged != null))
      {
        this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
      }
    }

    private void Initialize()
    {
    }



  }
}
